//封装本地存储存储数据与读取数据方法
//本地存储 token 数据
export const SET_TOKEN = (token) => {
    localStorage.setItem('TOKEN', token)
}

//本地存储获取 token 数据
export const GET_TOKEN = () => {
    return localStorage.getItem('TOKEN')
}

//本地存储删除 token 数据方法
export const REMOVE_TOKEN = () => {
    localStorage.removeItem('TOKEN')
}

//本地存储 token_expire_time 数据
export const SET_TOKEN_EXPIRE_TIME = (token_expire_time) => {
    localStorage.setItem('TOKEN_EXPIRE_TIME', token_expire_time)
}

//本地存储获取 token_expire_time 数据
export const GET_TOKEN_EXPIRE_TIME = () => {
    return localStorage.getItem('TOKEN_EXPIRE_TIME')
}

//本地存储删除 token_expire_time 数据方法
export const REMOVE_TOKEN_EXPIRE_TIME = () => {
    localStorage.removeItem('TOKEN_EXPIRE_TIME')
}
